package com.warm.spring.bean.hero;

import com.warm.spring.bean.equip.Equip;
import com.warm.spring.bean.skill.Skill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description 瞎子 -- annotation
 * @Author iyb-liangchuang
 * @Date 2021/5/10 14:24
 */
@Component
public class XiaziHero extends Hero {

    public static RoleEnum ROLE = RoleEnum.JUNGLE;

    @Autowired
    @Qualifier("fistEquip")
    private Equip equip;

    @Resource(name = "xiaziSkill")
    private Skill skill;

    @Override
    public void figth(){
        System.out.println("Hero: Xiazi, Role: " + ROLE + ", Attack: " + attack(equip, skill));
    }
}
